﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace e2
{
    public class Product
    {
        private string name;
        private double price;

        public double Price { get => price; set => price = value; }
        public string Name { get => name; set => name = value; }

        public Product()
        {

        }
        public Product(string name, double price)
        {
            Price = price;
            Name = name;
        }
        public override string ToString()
        {
            return "\n" + Name + "  单价: ￥" + Price + "." + "\n";
        }
    }
}
